package com.jd.ymcc.dto;

import com.jd.ymcc.until.AssertUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegisterDto {

    @Pattern(regexp = AssertUtil.PHENT_REGULAR, message = "手机号格式不正确！")
    private String mobile;

    @Size(min = 6, max = 12, message = "密码必须是6 ~ 12位！")
    private String password;
    
    @Size(min = 6, max = 6, message = "验证码必须是6位！")
    private String smsCode;

    private String imageCode;
    private Integer regChannel;
    private String recode;

}